package com.tjetc.utils;


import com.tjetc.dao.OrdersMapper;
import com.tjetc.domain.po.Orders;
import com.tjetc.domain.vo.OrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class PoToVoUtil {

    @Autowired
    private OrdersMapper ordersMapper;

    public OrderVo toOrderVo(Orders orders) {
        return ordersMapper.findOrderVOByOrder(orders);
    }
}
